package com.example.shiro.util;

/**
 * @author lijilong
 * @version 1.0
 * @Description:
 * @CreateDate 2018/7/5 9:58
 */
public enum ResultCodeEnum {
    SUCCESS(0),//成功
    FAIL(400),//失败
    UNAUTHORIZED(403),//未认证（签名错误）
    NOT_FOUND(404),//接口不存在
    INTERNAL_SERVER_ERROR(500);//服务器内部错误

    private int code;
    ResultCodeEnum(int code){
        this.code = code;
    }

    public int getCode(){
        return code;
    }
}
